$(function() {
	var grid;
	var url=null;
	$.ajax({
		success:function(data){
			var button = data;
			if(button !== ''){
				  button = button.replace("\"","");
				  button = button.replace("\"","");
		        }
			grid = TableData({
				gaine : 'paging',//id名
				table:'log',
				column : [ {
					colkey : "id",
					name : "id",
					visible: false,
					searchable: false
				},{
					colkey : "accountName",
					name : "账号"
				}, {
					colkey : "module",
					name : "模块"
				}, {
					colkey : "methods",
					name : "方法"
				}, {
					colkey : "actionTime",
					name : "响应时间",
					width : "150px"
				} , {
					colkey : "userIP",
					name : "IP地址"
				}, {
					colkey : "operTime",
					name : "执行时间",
					render:function(data,type,row,meta){
						return new Date(data).format("yyyy-MM-dd hh:mm:ss");
					}
				}
				],
				url : rootPath + '/log/findByPage.shtml',//表格数据请求地址
				//button: data,
			 });
		}
	})
});
	
	